package com.itheima.pinda.entity.truck;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.pinda.entity.base.Entity;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 车辆行驶证表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pd_truck_license")
public class PdTruckLicense extends Entity implements Serializable {

    /**
     * 车辆id
     */
    @TableField(value = "truck_id")
    private String truckId;

    /**
     * 发动机编号
     */
    @TableField(value = "engine_number")
    private String engineNumber;

    /**
     * 注册时间
     */
    @TableField(value = "registration_date")
    private Date registrationDate;

    /**
     * 国家强制报废日期
     */
    @TableField(value = "mandatory_scrap")
    private Date mandatoryScrap;

    /**
     * 检验有效期
     */
    @TableField(value = "expiration_date")
    private Date expirationDate;

    /**
     * 整备质量
     */
    @TableField(value = "overall_quality")
    private BigDecimal overallQuality;

    /**
     * 核定载质量
     */
    @TableField(value = "allowable_weight")
    private BigDecimal allowableWeight;

    /**
     * 外廓尺寸
     */
    @TableField(value = "outside_dimensions")
    private String outsideDimensions;

    /**
     * 行驶证有效期
     */
    @TableField(value = "validity_period")
    private Date validityPeriod;

    /**
     * 道路运输证号
     */
    @TableField(value = "transport_certificate_number")
    private String transportCertificateNumber;

    /**
     * 图片信息
     */
    @TableField(value = "picture")
    private String picture;
}